package com.crm.service.knowledgeitem;

import com.crm.model.entity.knowledgeitem.KnowledgeItem;
import java.util.List;

public interface KnowledgeItemDbService {

    /**
     * @Description: 添加知识
     * @Param: [item]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/5/7
    **/
    Boolean insert(KnowledgeItem item);


    /**
     * @Description: 获取知识列表
     * @Param: []
     * @Return: java.util.List<com.crm.model.entity.knowledgeitem.KnowledgeItem>
     * @Author: lixq-f
     * @Date: 2021/5/7
    **/
    List<KnowledgeItem> selectList();


    /**
     * @Description: 编辑
     * @Param: [item]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/5/7
    **/
    Boolean update(KnowledgeItem item);



    /**
     * @Description: 根据主键删除
     * @Param: [itemId, deleteStatus]
     * @Return: Boolean
     * @Author: lixq-f
     * @Date: 2021/4/20
     **/
    Boolean deleteById(String itemId, short deleteStatus);


    /**
     * @Description: 根据主键获取知识条目
     * @Param: [itemId]
     * @Return: com.crm.model.entity.knowledgeitem.KnowledgeItem
     * @Author: lixq-f
     * @Date: 2021/5/8
     **/
    KnowledgeItem selectKnItemByKey(String itemId);


    /**
     * @Description: 查询条目数量
     * @Param: []
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/5/14
    **/
    Integer selectItemCount();



}
